package demo6;

import java.lang.reflect.Constructor;


public class Demo3 {
    public static void main(String[] args) throws Exception {
        Class cls = Class.forName("demo6.Student");
        Constructor c =  cls.getDeclaredConstructor();
        c.setAccessible(true);
        Object o1 = c.newInstance();
        Object o2 = c.newInstance();
        System.out.println(o1);
        System.out.println(o2);
    }
}
